package com.wei.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wei.entity.UserEntity;
import com.wei.vo.UserToken;

public interface UserService extends IService<UserEntity> {
    //注册
    void register(UserEntity userEntity);

    //激活
    void activateUser(String code);

    //登录
    UserToken login(String username,String pwd);

    //登出
    void logout(String token);

    void updatePassword(String oldPassword, String newPassword,String newPassword2,UserToken userToken);

    //查找用户信息
    UserEntity findUserById(Integer uid);

}